#!/bin/bash
# date:2015-01-05
# descripitions:导出初始数据，生成initdata.xml 。初始数据表范围:
#							   lpts.arch lpts.testclass lpts.testcontent lpts.tool lpts.unit lpts.index lpts.tester lpts.scene
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
python manage.py dumpdata --format xml lpts.arch lpts.testclass lpts.testcontent lpts.tool lpts.unit lpts.index lpts.tester lpts.scene lpts.scenegroup >../dbops/initdata.xml
if [ $? -eq 0 ]
then
  echo "export init data pass."
else
  echo "export init data fail."
fi
